@import "./base.less";
[v-cloak] {
    display: none;
}

blockquote,
body,
button,
div,
dd,
dl,
dt,
fieldset,
form,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
input,
legend,
li,
ol,
p,
pre,
td,
textarea,
th,
ul {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

q:before,
p:after {
    content: '';
}

html,
body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased; //是字体变得清晰
    -webkit-overflow-scrolling: auto;
    /*回弹*/
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); //去掉点击链接和文本框对象时默认的灰色半透明覆盖层(iOS)或者虚框(Android)
}

button:focus {
    outline: none;
}

ol,
ul {
    list-style: none;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #000;
    &:hover {
        text-decoration: none;
    }
}

img {
    vertical-align: middle;
}

span {
    line-height: 100%;
}

//表格开始
table {
    border-collapse: collapse;
    border-spacing: 0;
}

//表格结束
#dataList .mescroll-empty {
    height: 100vh;
}

//表单开始
input,
textarea {
    outline: none !important;
    -webkit-appearance: none !important;
    border: none;
    background: none;
    box-shadow: none;
    &:focus {
        outline: none;
        -webkit-appearance: none;
        border-color: transparent;
    }
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}

//搜索框样式
input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.imgPreview {
    position: fixed;
    z-index: 11111;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .7);
    img {
        min-width: 200px;
        max-height: 80vh;
        width: 100%;
    }
}

.center_content {
    padding-top: 40px;
    padding-bottom: 20px;
    width: 1200px;
    margin: 0 auto;
    display: -webkit-box;
    /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;
    /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;
    /* TWEENER - IE 10 */
    display: -webkit-flex;
    /* NEW - Chrome */
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

//表单结束
//通用class
.clear {
    clear: both;
}

.none {
    display: none !important;
}

.bold {
    font-weight: bold;
}

.clearfix {
    *zoom: 1
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.clearfix:before,
.clearfix:after {
    display: table;
    content: "";
    line-height: 0
}

.clearfix:after {
    clear: both
}

.overflow {
    &:after {
        content: '';
        display: block;
        clear: both;
    }
}

.no-hover {
    pointer-events: none;
}

.hover {
    cursor: pointer;
}

.rows {
    display: flex;
    >div {
        flex: 1;
    }
    .one,
    .two {
        width: 50%;
    }
}

.cover {
    height: 100%;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.one-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

.three-line {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.one-row {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.two-row {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hide {
    display: none;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    background-color: rgba(0, 0, 0, .5);
}

.slideInUp {
    animation: slideInUp .3s;
}

@keyframes slideInUp {
    from {
        transform: translate3d(0, 100%, 0)
    }
    to {
        transform: translate3d(0, 0, 0)
    }
}

.radio-input,
.checkbox-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.01;
}
.my-btn {
    position: relative;
    &:active {
        &:after {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.09);
        }
    }
}

/*弹性布局兼容性*/

.my-flex {
    display: -webkit-box;
    /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;
    /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;
    /* TWEENER - IE 10 */
    display: -webkit-flex;
    /* NEW - Chrome */
    display: flex;
    /* NEW, Spec - Opera 12.1, Firefox 20+ */
}


/*横向between*/

.my-flex-between {
    &:extend(.my-flex);
    justify-content: space-between;
    align-items: center;
}

.my-flex-center {
    &:extend(.my-flex);
    justify-content: center;
    align-items: center;
}


/*横向around*/

.my-flex-around {
    &:extend(.my-flex);
    justify-content: space-around;
    align-items: center;
}

.my-flex-right {
    &:extend(.my-flex);
    justify-content: flex-end;
    align-items: center;
}

.my-flex-left {
    &:extend(.my-flex);
    justify-content: flex-start;
    align-items: center;
}


/*纵向*/

.my-flex-col-between {
    &:extend(.my-flex);
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.my-flex-col-center {
    &:extend(.my-flex);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.my-flex-col-around {
    &:extend(.my-flex);
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

//按钮
.btn {
    display: inline-block;
    padding: 8px 15px;
    margin-bottom: 0;
    font-size: 16px;
    //  line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 8px;
}

button {
    letter-spacing: 1px;
}

//向下展开收缩
.slideUp {
    overflow: hidden;
    max-height: 0;
    transition: max-height .8s;
    &.slideDown {
        max-height: 400px;
        transition: max-height .8s;
        z-index: 11;
    }
}

.my-btn {
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    &:hover {
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    &:active {
        &:after {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.09);
        }
    }
}

.noPermission {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    //  background-color: rgba(0, 0, 0, 0.06);
    //  opacity: 0;
    background-color: transparent;
    z-index: 111;
}

.pagination {
    //  margin-top: 30px;
}

.category_component {
    position: absolute;
    top: 36px;
    width: 620px;
    background: #ccc;
    z-index: 11;
    .mask_ {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        display: block;
        content: '';
    }
}

.type_select {
    padding: 20px 0;
    padding-bottom: 35px;
    .label {
        position: relative;
        width: 200px;
        text-align: center;
        .img {
            width: 20px;
            height: 20px;
            background-image: url("../../assets/common/ic_selectbox_register_nor@2x.png");
            background-size: 100%;
            display: inline-block;
            vertical-align: middle;
            margin-right: 20px;
        }
        span {
            vertical-align: middle;
            font-size: 14px;
            color: @color-txt1;
        }
        input {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0.01;
            left: 0;
            top: 0;
        }
        input:checked+.img {
            background-image: url("../../assets/common/ic_selectbox_register_sel@2x.png");
            &+span {
                color: @base-color;
            }
        }
    }
}